<?php
declare(strict_types=1);

namespace App\Helper;

use Hyperf\Logger\LoggerFactory;
use Hyperf\Utils\ApplicationContext;
use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInterface;

class StdoutLoggerFactory
{
    public function __invoke(ContainerInterface $container): LoggerInterface
    {
        return ApplicationContext::getContainer()->get(LoggerFactory::class)->get('sys');
    }
}
